# Tagfolder
#http://code.google.com/p/tagfolder/
#Licensed under LGPL
#
#

ADD_SUBDIRECTORY(common)
ADD_SUBDIRECTORY(deamon)
ADD_SUBDIRECTORY(intf)
ADD_SUBDIRECTORY(menu)

if(WIN32)
        SET(machine_arch "x86" CACHE STRING "")
        if(MSVC)
                if(MSVC_VERSION LESS 1300)
                        MESSAGE("[ERROR]Cannot build on Visual C++ before VC 6.0!")
                else(MSVC_VERSION LESS 1300)
                        if(MSVC80)
                                SET(cpp_compiler "vc2005" CACHE STRING "")
                                SET(c_compiler "vc2005" CACHE STRING "")
                        else(MSVC80)
                                SET(cpp_compiler "vc2003" CACHE STRING "")
                                SET(c_compiler "vc2003" CACHE STRING "")
                        endif(MSVC80)
                endif(MSVC_VERSION LESS 1300)
        else(MSVC)
        endif(MSVC)
else(WIN32)
        SET(cpp_compiler "gnu" CACHE STRING "")
        SET(c_compiler "gnu" CACHE STRING "")
endif(WIN32)

#
#Google test lib directories
SET(gtest_lib_dir "${cpp_compiler}${machine_arch}" CACHE STRING "")

#
#Google test libraries
#SET(gtest_libs gtest.lib gtest_main.lib CACHE STRING "")

#
#Add dependencies
#
ADD_DEPENDENCIES(TFDeamon client_stub_dynamic client_stub_static)
ADD_DEPENDENCIES(TFConfiguratorTest TFDeamon)
